<?php
require_once PATH_SITE.'cn/royan/php/proxys/ConfigProxy.proxy.php';
require_once PATH_SITE.'cn/royan/php/mediators/ApplicationMediator.mediator.php';
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
require_once PATH_SITE.'org/puremvc/php/patterns/command/SimpleCommand.php';  
require_once PATH_SITE.'org/puremvc/php/interfaces/INotification.php';
/**
 * Description of StartApplicationCommand
 *
 * @author Royan
 */
class StartApplicationCommand extends SimpleCommand
{
    //put your code here
    public function execute( INotification $notification )
    {
        $this->facade->registerMediator( new ApplicationMediator() );
        IF( !$this->facade->hasProxy( ConfigProxy::NAME ) )
            $this->facade->registerProxy( new ConfigProxy() );
        
        $configProxy = $this->facade->retrieveProxy( ConfigProxy::NAME );
        $configProxy->load( $notification->getBody() );
    }
}

?>
